package com.jiufen.Exception;


public class RuntimeOutCustomException extends Exception {
    public RuntimeOutCustomException() {
        super("自定义超时异常，请检查！");
    }

    public RuntimeOutCustomException(String message) {
        super(message);
    }

    public  RuntimeOutCustomException(Integer exceptionNumber) {
        String message ;
        if (exceptionNumber == 1){
            message = "令牌过期，请检查登录状态！";
        }else{
            message = "自定义超时异常，请检查！";
        }
        super(message);
    }


}
